<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
	<title>Tencent</title>
	<link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">  
	<script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
	<script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
	<style>
    .fakeimg {
        height: 200px;
        background: #aaa;
    }
  </style>
</head>

<body>
<nav class="navbar navbar-inverse">
		<div class="container-fluid">
			<div class="navbar-header">
				<button type="button" class="navbar-toggle" data-toggle="collapse"
					data-target="#myNavbar">
					<span class="icon-bar"></span> <span class="icon-bar"></span> <span
						class="icon-bar"></span>
				</button>
				<a class="navbar-brand">欢迎您！</a>
			</div>
			<div class="collapse navbar-collapse" id="myNavbar">
				<ul class="nav navbar-nav" style="float:left">
					<li class="active"><a href="index.jsp">主页</a></li>
				</ul>
				<ul class="nav navbar-nav" style="float:right">
					<%
						if (session.getAttribute("user") != null) {
					%>
					<li><a href="${pageContext.request.contextPath}/Logout.do">登出</a> <%
 	} else {
 %> <a class="navbar-brand"
						href="${pageContext.request.contextPath}/Login.do?method=0">请先登录</a>
						<%
							}
						%>
					</li>
				</ul>
			</div>
		</div>
	</nav>
	
	<div style="margin-left: 20px;">
	<h2>公司</h2>
	<!--1级分类开始  遍历结果集，显示category的job-->
	<c:forEach items="${datas['category']}" var="category">
		<div>
			<h3>
				<!--显示category的job-->
				[<a href='#'>${category.job}</a>]
			</h3>
			<ul class="ul_left_list">
				<c:forEach items="${category.subCats}" var="subCats">
					<!--2级分类开始  遍历2级结果集，显示subCats.job，建一个超链接c1=category.id&c2=subCats.id-->
					<li><a
						href='${pageContext.request.contextPath}/Company.do?method=4&id=${subCats.pid}'>${subCats.job}</a>
					</li>
					<!--2级分类结束-->
				</c:forEach>
			</ul>
		</div>
		<!--1级分类结束-->
	</c:forEach>
	</div>

	<div class="jumbotron text-center" style="margin-bottom:0;margin-top: 300px;">
  版权所有 © Copyright 2018-2100 03160519 康楠  中国·广东珠海吉林大学珠海学院
</div>
</body>
</html>
